<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateProjectMilestoneTable extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		Schema::create('project_milestone',function(Blueprint $table){
            $table->increments('id') ;          //里程碑id
            $table->unsignedInteger('project_id') ;     //项目id
            $table->timestamp('mil_time') ;     //创建时间
            $table->string('mil_desc') ;        //描述信息
            $table->softDeletes();
            $table->timestamps();
        });
	}

	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		Schema::drop('project_milestone');
	}

}
